PrintBarcodeObject

data class PrintBarcodeObject(val contents: String? = null, val barcodeFormat: String? = null, val printBarcodeProperties: PrintBarcodeProperties? = null) : PrintObject

A data class that holds the info for the Barcode object to be printed.

Constructors

Link copied to clipboard
constructor(contents: String? = null, barcodeFormat: String? = null, printBarcodeProperties: PrintBarcodeProperties? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val barcodeFormat: String? = null

The Barcode format that is supported by the printer. @sample: ean-8, ean-13, qr_code, code_93, code_39, code_128

Link copied to clipboard
val contents: String? = null

This is the contents that will be encoded to a Barcode. If invalid a PrintResult with Status.Failure will be returned.

Link copied to clipboard

The type of the print object (e.g., LINE, EMPTY_LINE, etc.).

Link copied to clipboard

these are the barcode layout properties. If null, default layout properties will be taken depending on device.

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)